#ifndef GRAPHICSVIEW_H
#define GRAPHICSVIEW_H
#include<QGraphicsView>
#include<QWheelEvent>
#include<cmath>

class GraphicsView:public QGraphicsView
{
    Q_OBJECT
public :
    explicit GraphicsView(QWidget*praent=0);
    void set_full_show() {
        isFull = true;
    }

signals:
    void sig_max_show();
public slots:
    void zoomIn();
    void zooOut();
protected:
    void wheelEvent(QWheelEvent *event);
    void mouseDoubleClickEvent(QMouseEvent *event);
private:
    void scaleby(double factor);

    bool isFull;
};

#endif // GRAPHICSVIEW_H

